﻿using System;
using System.Collections.Generic;

namespace Handday.Erp.Transfer.Models
{
    /// <summary>
    /// 大交易数据CRM模型
    /// </summary>
    public class EightTradingCrmDto
    {
        /// <summary>
        /// 企业编号
        /// </summary>
        public ulong CorpId { get; set; }

        /// <summary>
        /// 列表
        /// </summary>
        public IEnumerable<EightTradingTransferCrmDetailDto> Data { get; set; }
    }

    /// <summary>
    /// 8大交易数据CRM模型
    /// </summary>
    public class EightTradingTransferCrmDetailDto
    {
        /// <summary>
        /// 当年交易金额
        /// </summary>
        public decimal Ytotal { get; set; }

        /// <summary>
        /// 本月交易金额
        /// </summary> 
        public decimal Mtotal { get; set; }

        /// <summary>
        /// 上月交易金额
        /// </summary>
        public decimal PmTotal { get; set; }

        /// <summary>
        /// 最后一次交易金额
        /// </summary>
        public decimal LastTotal { get; set; }

        /// <summary>
        /// 最后一次交易时间
        /// </summary>
        public DateTimeOffset LastTime { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        public string CustomerKey { get; set; }

        /// <summary>
        /// 交易次数（统计销售出库单）
        /// </summary>
        public int TransactionCount { get; set; }

        /// <summary>
        /// 统计年份
        /// </summary>
        public int Year { get; set; }

        /// <summary>
        /// 统计月份
        /// </summary>
        public int Month { get; set; }
    }
}
